package com.spring.demos.ioccontainer.pojo;

public abstract class Phone {
    //CPU类型
    private String cpuType;
    //型号
    private String typeNum;
    //售价
    private float salePrice;

    public abstract void sayPhoneType();

    public Phone() {
    }

    public Phone(String cpuType, String typeNum, float salePrice) {
        this.cpuType = cpuType;
        this.typeNum = typeNum;
        this.salePrice = salePrice;
    }

    public String getCpuType() {
        return cpuType;
    }

    public void setCpuType(String cpuType) {
        this.cpuType = cpuType;
    }

    public String getTypeNum() {
        return typeNum;
    }

    public void setTypeNum(String typeNum) {
        this.typeNum = typeNum;
    }

    public float getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(float salePrice) {
        this.salePrice = salePrice;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "cpuType='" + cpuType + '\'' +
                ", typeNum='" + typeNum + '\'' +
                ", salePrice=" + salePrice +
                '}';
    }
}
